//
//  YZMConfigureModel.h
//  YZMicroStock
//
//  Created by wangminhong on 16/4/13.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <Mantle/Mantle.h>

@interface YZMConfigureModelForLever :MTLModel <MTLJSONSerializing>

@property (nonatomic, assign) double value;
@property (nonatomic, assign) double rate;

@end

@interface YZMConfigureModel : MTLModel <MTLJSONSerializing>

@property (nonatomic, strong) NSDate *requestTime;
//@property (nonatomic, assign) BOOL isHoliday;
@property (nonatomic, assign) double unHanldDeferCharge;/*已结算未缴纳递延费*/
@property (nonatomic, assign) NSInteger gameTimeStatus;

@property (nonatomic, assign) double balance;
@property (nonatomic, assign) NSInteger buyCount;/*今日已购买次数*/
@property (nonatomic, strong) NSString *token;
@property (nonatomic, assign) BOOL signAgreement;/*是否已签约协议*/
@property (nonatomic, assign) NSInteger userType;

@property (nonatomic, strong) NSArray *limitTimePeriods;/*交易时间段限制*/
@property (nonatomic, strong) NSArray *levers;/*止损数组*/
@property (nonatomic, strong) NSString *defaultStockCode;/*默认股票代码*/
@property (nonatomic, assign) NSInteger maxStockCount;/*单次单股最大交易数量*/
@property (nonatomic, strong) NSArray *tradingMoneyList;/*可选金额列表*/
@property (nonatomic, strong) NSArray *priceRisk;/*可购买的价格区间*/
@property (nonatomic, strong) NSArray *quitGainRatioList;/*止盈线比率列表*/
@property (nonatomic, assign) double tradingCountRatio;/*可交易股票除以的参数*/
@property (nonatomic, assign) NSInteger maxCountOneDay;/*一天最大购买次数*/
@property (nonatomic, assign) double serviceCharge;/*每1万元的交易综合费*/
@property (nonatomic, strong) NSString *version;/*基础配置的版本*/
@property (nonatomic, assign) double deferThreshHoldRatio;/*递延规则*/
@property (nonatomic, assign) double maxMoneyOneStock;/*个股持仓累计金额的最大值*/
@property (nonatomic, assign) double deferCharge;/*每1万元递延一天的费用*/
@property (nonatomic, strong) NSArray *holidayList;
@property (nonatomic, assign) double quitLossRatio;/*T+D止损比例*/
@property (nonatomic, assign) double profitShare;/*T+D*盈利分成*/
@property (nonatomic, assign) double deferConditionRatio;/*T+D递延条件比例*/
@property (nonatomic, assign) double quitGainRatio;/*T+D止盈比例*/
@property (nonatomic, strong) NSArray *holdDayList;/*T+D持仓时间*/
@property (nonatomic, assign) NSInteger maxTradingDay;/*T+D最大交易日*/
@property (nonatomic, assign) NSInteger leverValue;/*T+D杠杆倍数*/
@property (nonatomic, assign) double deferChargeForLittleMoney;/*万元以下递延费*/
@property (nonatomic, assign) double serviceChargeForLittleMoney;/*万元以下交易综合费*/
@property (nonatomic, assign) double totalSurplusMoney;/*盈利宝当日点买总金额剩余*/

@property (nonatomic, assign) double userSurplusMoney;/* 盈利宝用户总金额剩余*/

@property (nonatomic, assign) double totalMoney;



- (BOOL)isInTradeTimePeriods;
- (BOOL)isInTradeShowTimePeriods;/*递延费显示时间*/
- (void)createEncoder;
+ (YZMConfigureModel *)createDecoder;

@end

@interface YZMTDConfigureModel : YZMConfigureModel

@end

@interface YZMONEConfigureModel : YZMConfigureModel

@end

@interface  YZMSIMUConfigureModel: YZMConfigureModel

@end

@interface YZMYLBConfigureModel : YZMConfigureModel

@end

@interface YZMFreeExperienceConfigureModel : YZMConfigureModel

@end

